﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Produce.Infrastructure.Migrations
{
    public partial class 添加种母分娩表 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Delivery",
                columns: table => new
                {
                    DeliveryId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    GestationDays = table.Column<int>(type: "int", nullable: true),
                    DifficultyOfDelivery = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    FatSheepLot = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Maternity = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Lactation = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Mastitis = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    NestNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    HealthyLamb = table.Column<int>(type: "int", nullable: true),
                    WeakLamb = table.Column<int>(type: "int", nullable: true),
                    Malformation = table.Column<int>(type: "int", nullable: true),
                    DeadFetus = table.Column<int>(type: "int", nullable: true),
                    MummyNumber = table.Column<int>(type: "int", nullable: true),
                    MalformedFetus = table.Column<int>(type: "int", nullable: true),
                    LiveLamb = table.Column<int>(type: "int", nullable: true),
                    NestTotalWeight = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    LambSex = table.Column<bool>(type: "bit", nullable: true),
                    CurrentBuilding = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CurrentField = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    OriginallyDorm = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    OriginallyColumns = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Delivery", x => x.DeliveryId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Delivery");
        }
    }
}
